package com.hmdecms.springBoot;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;

/**
 * Hello world!
 *
 */
@SpringBootApplication/*(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})*/
public class App 
{
    @Autowired  
    DataSource dataSource;  
    public static void main( String[] args )
    {
        SpringApplication.run(App.class, args);
    }
    
    /** 
     * 查看用了什么数据库连接池   
     */  
    public void run(String... args) throws Exception {  
        System.out.println("DATASOURCE = " + dataSource);  
    }  
}
